<template>
    <router-view></router-view>
</template>
<script setup lang="ts">
import { onMounted } from "vue";
import { storeToRefs } from "pinia";
import useLayoutStore from "@/stores/layoutStore";
const layoutStoreData = useLayoutStore();
onMounted(() => {
    console.log("项目启动");
    localStorage.setItem("IS_RELOAD", "pageReload");
    const { theme } = storeToRefs(layoutStoreData);
    document.documentElement.setAttribute("data-theme", theme.value);
});
</script>

<style scoped lang="scss"></style>
